class Student(object):
    count = 0
    def __init__(self, name):
        self.name = name
        Student.count+=1

xiaohong =Student('xiaohong')

print(xiaohong.count)

xiaoming=Student('xiaoming')

print(xiaoming.count)